/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.pojo.entity.Exam;
import me.zhengjie.pojo.entity.MasterTearcher;
import me.zhengjie.pojo.entity.Room;

import java.io.Serializable;
import java.util.Date;

/**
* @website https://el-admin.vip
* @description /
* @author LongYang
* @date 2021-06-28
**/
@Data
@TableName("kw_occupy")
@ApiModel(value = "Occupy",description = "查询考试占用情况，监考老师和教室Vo")
public class OccupyVo implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "系统主键")
    private Integer id;

    @ApiModelProperty(value = "考试id")
    private Integer examId;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date endTime;

    @ApiModelProperty(value = "教室id或教师id")
    private Integer typeId;

    @ApiModelProperty(value = "类型(0.教室   1.教师)")
    private String type;

    @ApiModelProperty(value = "考试信息")
    private Exam exam;

    @ApiModelProperty(value = "老师信息")
    private MasterTearcher masterTearcher;

    @ApiModelProperty(value = "教室信息")
    private Room room;

}